package com.smartum.mpr.client.services;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.smartum.mpr.shared.Image;
import java.util.List;

public abstract interface ImageServiceAsync
{
  public abstract void submitImages(int paramInt, Long[] paramArrayOfLong1, Long[] paramArrayOfLong2, AsyncCallback<Void> paramAsyncCallback);

  public abstract void getImages(int paramInt, long paramLong, AsyncCallback<List<Image>> paramAsyncCallback);

  public abstract void getTotalUnmoderateImages(AsyncCallback<Long> paramAsyncCallback);

  public abstract void removeTempImage(String paramString, AsyncCallback<Void> paramAsyncCallback);

  public static final class Util
  {
    private static ImageServiceAsync instance;

    public static final ImageServiceAsync getInstance()
    {
      if (instance == null)
      {
        instance = (ImageServiceAsync)GWT.create(ImageService.class);
      }
      return instance;
    }
  }
}